#define  _CRT_SECURE_NO_WARNINGS
#include"tree.h"
int main()
{
	tree* root = (tree*)malloc(sizeof(tree));
	root->data = 'A';
	root->left = NULL;
	root->right = NULL;
	tree* b = (tree*)malloc(sizeof(tree));
	b->data = 'B';
	b->left = NULL;
	b->right = NULL;
	tree* c = (tree*)malloc(sizeof(tree));
	c->data = 'C';
	c->left = NULL;
	c->right = NULL;
	tree* d = (tree*)malloc(sizeof(tree));
	d->data = 'D';
	d->left = NULL;
	d->right = NULL;
	tree* e = (tree*)malloc(sizeof(tree));
	e->data = 'E';
	e->left = NULL;
	e->right = NULL;
	root->left = b;
	root->right = c;
	b->left = d;
	b->right = e;
	pretree(root);
	printf("\n");
	midtree(root);
	printf("\n");
	fintree(root);
}